EndsWithSubStr

Note: This statement is named Ends with Substring in the Add Statement dialog box.

Returns True or False to indicate if a string ends with a substring.

Syntax

EndsWithSubStr("FullString", "Substring", IsCaseSensitive)

Arguments

Argument Description
FullString Full string to search.
Substring Substring to search for in the full string.
IsCaseSensitive Case sensitive search. True matches the substring case. False ignores the case. If not specified, True is used.

Return value

Value Description
True String ends with the substring.
False String does not end with the substring.

Example

productName = Window("Bug Reporter").HTMLElement("elementProductName").Property("Inner Text")

CheckpointExpression(EndsWithSubStr(productName, "Reporter", True), True, "Product name does not end with Reporter")